package com.qut.graduate.busrtquery.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 *
 * /*{"routeid":"1","routename":"1路","Segment":"[{\"Segment\":\"8525637\",\"type\":\"0\"}]","groupname":"gj",
 * "landmark":"四方-嘉定路-小村庄-海泊桥-台东(婚纱街)-十五中-大连路-齐东路-青医附院-湖北路",
 * "status":"1","station":"四方","time":"四方 04:10-22:30","station1":"湖北路","time1":"湖北路 04:40-23:05",
 * "price":"无人售票 普通1元 空调2元","line":"四方-湖北路","line1":"四方-湖北路","line2":"湖北路-四方",
 * "sort":"0000000010"}
 * @Author WLL
 * @Time: 2019/4/29 9:40
 */
public class Route implements Parcelable {
    private String routeid;  // 1
    private String routename; // 1路
    private String segment;
    private String groupname; // gj
    private String landmark; // 四方-嘉定路-小村庄-海泊桥-台东(婚纱街)-十五中-大连路-齐东路-青医附院-湖北路
    private String status; // 1
    private String station; // 四方
    private String time; // 四方 04:10-22:30
    private String station1; // 湖北路
    private String time1; // 湖北路 04:40-23:05
    private String price; // 无人售票 普通1元 空调2元
    private String line; // 四方-湖北路
    private String line1; // 四方-湖北路
    private String line2; // 湖北路-四方
    private String sort; // 0000000010

    protected Route(Parcel in) {
        routeid = in.readString();
        routename = in.readString();
        segment = in.readString();
        groupname = in.readString();
        landmark = in.readString();
        status = in.readString();
        station = in.readString();
        time = in.readString();
        station1 = in.readString();
        time1 = in.readString();
        price = in.readString();
        line = in.readString();
        line1 = in.readString();
        line2 = in.readString();
        sort = in.readString();
    }

    public static final Creator<Route> CREATOR = new Creator<Route>() {
        @Override
        public Route createFromParcel(Parcel in) {
            return new Route(in);
        }

        @Override
        public Route[] newArray(int size) {
            return new Route[size];
        }
    };

    @Override
    public String toString() {
        return "Route{" +
                "routeid='" + routeid + '\'' +
                ", routename='" + routename + '\'' +
                ", Segment='" + segment + '\'' +
                ", groupname='" + groupname + '\'' +
                ", landmark='" + landmark + '\'' +
                ", status='" + status + '\'' +
                ", station='" + station + '\'' +
                ", time='" + time + '\'' +
                ", station1='" + station1 + '\'' +
                ", time1='" + time1 + '\'' +
                ", price='" + price + '\'' +
                ", line='" + line + '\'' +
                ", line1='" + line1 + '\'' +
                ", line2='" + line2 + '\'' +
                ", sort='" + sort + '\'' +
                '}' + '\n';
    }

    /*private class Segment{
        private String Segment; // 8525637
        private String type; // 0
    }*/

    public String getRouteid() {
        return routeid;
    }

    public void setRouteid(String routeid) {
        this.routeid = routeid;
    }

    public String getRoutename() {
        return routename;
    }

    public void setRoutename(String routename) {
        this.routename = routename;
    }

    public String getSegment() {
        return segment;
    }

    public void setSegment(String segment) {
        this.segment = segment;
    }

    public String getGroupname() {
        return groupname;
    }

    public void setGroupname(String groupname) {
        this.groupname = groupname;
    }

    public String getLandmark() {
        return landmark;
    }

    public void setLandmark(String landmark) {
        this.landmark = landmark;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStation() {
        return station;
    }

    public void setStation(String station) {
        this.station = station;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getStation1() {
        return station1;
    }

    public void setStation1(String station1) {
        this.station1 = station1;
    }

    public String getTime1() {
        return time1;
    }

    public void setTime1(String time1) {
        this.time1 = time1;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getLine() {
        return line;
    }

    public void setLine(String line) {
        this.line = line;
    }

    public String getLine1() {
        return line1;
    }

    public void setLine1(String line1) {
        this.line1 = line1;
    }

    public String getLine2() {
        return line2;
    }

    public void setLine2(String line2) {
        this.line2 = line2;
    }

    public String getSort() {
        return sort;
    }

    public void setSort(String sort) {
        this.sort = sort;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeString(routeid);
        parcel.writeString(routename);
        parcel.writeString(segment);
        parcel.writeString(groupname);
        parcel.writeString(landmark);
        parcel.writeString(status);
        parcel.writeString(station);
        parcel.writeString(time);
        parcel.writeString(station1);
        parcel.writeString(time1);
        parcel.writeString(price);
        parcel.writeString(line);
        parcel.writeString(line1);
        parcel.writeString(line2);
        parcel.writeString(sort);
    }
}
